<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/1/29
  Time: 17:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>薪酬查询</title>
    <base href="${pageContext.request.contextPath}/"/>
    <link rel="stylesheet" href="static/css/bootstrap.css">
    <link rel="stylesheet" href="static/css/bootstrap-table.css">
</head>
<body>
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            查询条件
        </div>
        <div class="panel-body">
            <form class="form-inline">
                <label>编号查询：</label>
                <input type="text" class="form-control" id="comCode"/>
                <label>状态：</label>
                <input type="text" class="form-control" id="audit"/>
                <label>起始日期：</label>
                <input type="text" class="form-control" id="startDate"/>
                <label>结束日期：</label>
                <input type="text" class="form-control" id="endDate"/>
                <input type="button" value="查询" class="btn btn-primary" onclick="search()"/>
            </form>
        </div>
    </div>
    <table id="table"
            data-url="hr/search"
            data-toggle="table"
            data-striped="true"
            data-pagination="true"
            data-side-pagination="server"
            data-page-size="5"
            data-page-list="[5,10,15,20]">
        <thead>
        <tr>
            <th data-field="comCode">编号</th>
            <th data-field="comName">姓名</th>
            <th data-field="userAudit.audit">状态</th>
            <th data-field="salaryStandard.salaryCreateDate">全部</th>
            <th>操作</th>
        </tr>
        </thead>
    </table>
</div>
<script src="static/js/jquery-1.12.4.js"></script>
<script src="static/js/bootstrap.js"></script>
<script src="static/js/bootstrap-table.js"></script>
<script src="static/js/bootstrap-table-zh-CN.js"></script>
<script>
    function search() {
        var param={ };
        param.comCode=$("#comCode").val();
        $("#table").bootstrapTable("refresh",{query:param});
    }
</script>
</body>
</html>
